<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
function winResize() {
	var Dwidth = parseInt(document.body.scrollWidth);
	var Dheight = parseInt(document.body.scrollHeight);
	var divEl = document.createElement("div");
	divEl.style.position = "absolute";
	divEl.style.left = "0px";
	divEl.style.top = "0px";
	divEl.style.width = "100%";
	divEl.style.height = "100%";

	document.body.appendChild(divEl);

	window.resizeBy(Dwidth - divEl.offsetWidth+20, Dheight- divEl.offsetHeight+20);
	document.body.removeChild(divEl);
}
</script>
<title>회원 정보 목록</title>
</head>
<body onload="winResize()">
	<center>
		<br>
		<h2>
			<font color="blue">회원 정보 목록</font>
		</h2>
		<c:if test="${not empty message }">
			<font color="red" style="font-weight: bold">${message }</font>
		</c:if>
		<table cellpadding="5" cellspacing="5">
		<tr><td colspan="7" align="right"><a href='./searchUser.do' >[ 로그인하기 ]</a>&nbsp;
		<a href='/${initParam.context_root}/inputExcelUserList.do'>[ 엑셀로 출력 ]</a>
		</td>
		</tr>
			<tr bgcolor="lightgray">
				<th>NO</th>
				<th>ID</th>
				<th>PW</th>
				<th>NAME</th>
				<th>Email</th>
				<th>PhoneNumber</th>
				<th>BirthDay</th>
			</tr>
			<c:forEach items="${requestScope.selectUserList}" var="user" varStatus="i">
				<tr>
					<td>${i.count }</td>
					<td>${user.id }</td>
					<td>${user.password }</td>
					<td>${user.name }</td>
					<td>${user.email }</td>
					<td>${user.phoneNum }</td>
					<td>${user.birthday }</td>
				</tr>
			</c:forEach>
		</table>
		<br>
		<hr>
		<br><br>
	<input type="button" onclick="location.href='/${initParam.context_root}/mainView.do'" value="메인페이지로">
	</center>
</body>
</html>